package com.mk.web.threadpool;

/**
 * Created by WangChen on 2018/12/15 13:50.
 */
public class ClientThread implements Runnable{

    private String name;

    public ClientThread(String name) {
        this.name = name;
    }


    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName()+" Start. name = "+name);
        processCommand();
        System.out.println(Thread.currentThread().getName()+" End.");
    }

    private void processCommand() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
